package com.tencent.web.controller;

import com.tencent.service.ShowPeoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.crypto.Data;
import java.util.ArrayList;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author: stand    @date: 2022/8/11 15:30
 * @description:
 */
@RestController
@RequestMapping("/showpeo")
public class ShowPeoController1 {
    @Autowired
    private ShowPeoService showPeoService;

//    @RequestMapping("/peo1")
//    public  int showpeo1(){
//        int i = showPeoService.showpeo1();
//        System.out.println(i);
//        return  i ;
//    }
//    @RequestMapping("/peo2")
//    public  int showpeo2(){
//        int i = showPeoService.showpeo2();
//        return  i ;
//    }
//    @RequestMapping("/peo3")
//    public  int showpeo3(){
//        int i = showPeoService.showpeo3();
//        System.out.println(i);
//        return  i ;
//    }
    @RequestMapping("/peo4")
    public  int showpeo4(){
        int i = showPeoService.showpeo4();
        return  i ;
    }
//    @RequestMapping("/peo")
//    public  void searchAll(){
//        ExecutorService executorService = Executors.newFixedThreadPool(20);
//        long timeMillis = System.currentTimeMillis();
//        int i = showPeoService.showpeo1();
//        int i1 = showPeoService.showpeo2();
//        int i2 = showPeoService.showpeo3();
//        int i3 = showPeoService.showpeo4();


//    }


}